In the previous
practice exercise, you practiced While Activity, by building a workflow
of the displays if the input is a prime number. In this video, you'll understand the For Each Activity.
Let's get started. The For Each Activity
enables you to step through arrays,
lists, data tables, or other types of collections, so that you can iterate
through the data, and process each piece of
information individually. This is very useful
in data processing. Consider an array of integers, for each would be enable
the workflow to check whether each numeric item
meets a certain condition. You can use a break activity
to exit the loop at any desired point even when the specified
condition is valid. In the next video, you will see a demonstration wherein
a program displays the directory name of
all the files from a folder using the
For Each Activity. I would encourage
you to go through the demonstration and attempt
to repeat it on your own. Then that's it for this
video. Thanks for watching.